<extend name="Layout/application"/>

<block name="css">
   <style>
      /*.am-form-file {*/
      /*position: relative;*/
      /*overflow: hidden*/
      /*}*/

      /*.am-form-file input[type=file] {*/
      /*position: absolute;*/
      /*left: 0;*/
      /*top: 0;*/
      /*z-index: 1;*/
      /*width: 100%;*/
      /*opacity: 0;*/
      /*cursor: pointer;*/
      /*font-size: 50rem*/
      /*}*/
   </style>
</block>
<block name="content">
   <section class="content-header">
      <h1>
         录入客资
         <small>Customer create</small>
      </h1>
      <ol class="breadcrumb">
         <li><a href="#"><i class="fa fa-dashboard"></i> Customer</a></li>
         <li class="active">Create</li>
      </ol>
   </section>

   <section class="content" style="width: 70%;">

      <include file="Layout/_flash"/>

      <div class="box box-success">

         <div class="box-body">
            <form class="form-horizontal" role="form" method="post" action="{{:url('customers/save')}}">
               <div class="box-body">

                  <div class="form-group">
                     <label class="col-sm-2 control-label">姓名</label>
                     <div class="col-sm-10">
                        <input type="text" name="name" class="form-control" placeholder="请输入姓名" value="{{$Request.param.name}}">
                     </div>
                  </div>
                  <div class="form-group">
                     <label class="col-sm-2 control-label">电话</label>
                     <div class="col-sm-10">
                        <input type="text" name="phone" class="form-control" placeholder="请输入电话" maxlength="11" value="{{$Request.param.phone}}">
                     </div>
                  </div>
                  <div class="form-group">
                     <label class="col-sm-2 control-label">姓名1</label>
                     <div class="col-sm-10">
                        <input type="text" name="name1" class="form-control" placeholder="请输入姓名1">
                     </div>
                  </div>
                  <div class="form-group">
                     <label class="col-sm-2 control-label">电话1</label>
                     <div class="col-sm-10">
                        <input type="text" name="phone1" class="form-control" placeholder="请输入电话1" maxlength="11">
                     </div>
                  </div>

                  <div class="form-group">
                     <label class="col-sm-2 control-label">微信</label>
                     <div class="col-sm-10">
                        <input type="text" name="wx" class="form-control" placeholder="请输入微信号">
                     </div>
                  </div>

                  <!--<div class="form-group">-->
                  <!--<label>微信二维码</label>-->
                  <!--<div class="form-group am-form-file">-->
                  <!--&lt;!&ndash;使用上面样式&ndash;&gt;-->
                  <!--&lt;!&ndash;<button class="btn btn-warning"><i class="fa fa-upload" id="loading"></i>上传的缩略图</button>&ndash;&gt;-->
                  <!--&lt;!&ndash;<input type="file" id="image_upload">&ndash;&gt;-->
                  <!--&lt;!&ndash;不使用样式&ndash;&gt;-->
                  <!--<button class="btn btn-warning upload_img"><i class="fa fa-upload" id="loading"></i>上传缩略图</button>-->
                  <!--<input type="file" id="image_upload" style="display: none;">-->
                  <!--<input type="hidden" name="photo_id">-->
                  <!--</div>-->
                  <!--<div>-->
                  <!--<img src="http://oze5mdef4.bkt.clouddn.com/cec3f09beaf1f2051ad51277fa2da422.png"-->
                  <!--id="img_show" style="max-height: 150px;">-->
                  <!--</div>-->
                  <!--</div>-->

                  <div class="form-group">
                     <label class="col-sm-2 control-label">QQ</label>
                     <div class="col-sm-10">
                        <input type="text" name="qq" class="form-control" placeholder="请输入QQ">
                     </div>
                  </div>

                  <div class="form-group">
                     <label class="col-sm-2 control-label">地区</label>
                     <div class="col-sm-10">
                        <select class="form-control" name="area_id">
                           <option>请选择地区</option>
                           <volist name="areas" id="area">
                              <option value="{{$area.id}}">{{$area.name}}</option>
                           </volist>
                        </select>
                     </div>
                  </div>
                  <div class="form-group">
                     <label class="col-sm-2 control-label">来源</label>
                     <div class="col-sm-10">
                        <select class="form-control" name="qudao_id">
                           <option value="">请选择来源</option>
                           <volist name="qudaos" id="qudao">
                              <option value="{{$qudao.id}}">{{$qudao.name}}</option>
                           </volist>
                        </select>
                     </div>
                  </div>
                  <div class="form-group">
                     <label class="col-sm-2 control-label">电话客资</label>
                     <div class="col-sm-10">
                        <div class="radio">
                           <label>
                              <input type="radio" name="is_phone" class="flat-red" value="1" checked> 是
                           </label>
                           <label>
                              <input type="radio" name="is_phone" class="flat-red" value="0"> 否
                           </label>
                        </div>
                     </div>
                  </div>
                  <div class="form-group">
                     <label class="col-sm-2 control-label">是否紧急客资</label>
                     <div class="col-sm-10">
                        <div class="radio">
                           <label>
                              <input type="radio" name="is_urgent" value="1"> 是
                           </label>
                           <label>
                              <input type="radio" name="is_urgent" value="0" checked> 否
                           </label>
                        </div>
                     </div>
                  </div>

                  <div class="form-group">
                     <label class="col-sm-2 control-label">套系性质</label>
                     <div class="col-sm-10">
                        <select class="form-control" name="style">
                           <volist name="styles" id="style">
                              <option value="{{$key}}">{{$style}}</option>
                           </volist>
                        </select>
                     </div>
                  </div>

                  <div class="form-group">
                     <label class="col-sm-2 control-label">门店</label>
                     <div class="col-sm-10">
                        <select class="form-control" name="dian">
                           <volist name="dians" id="dian">
                              <option value="{{$dian}}">{{$dian}}</option>
                           </volist>
                        </select>
                     </div>
                  </div>

                  <div class="form-group">
                     <label class="col-sm-2 control-label">备注</label>
                     <div class="col-sm-10">
                     <textarea name="mark" id="" cols="60" rows="5" class="form-control"
                               placeholder="请输入备注"></textarea>
                     </div>
                  </div>

                  <div class="box-footer">
                     <button type="reset" class="btn btn-default">重置</button>
                     <button type="submit" class="btn btn-info pull-right">提交</button>
                  </div>
               </div>
            </form>
         </div>
      </div>

   </section>
</block>

<block name="js">
   <!--上传图片-->
   <script src="/vendor/qiniu/jquery.html5-fileupload.js"></script>
   <script src="/vendor/qiniu/upload.js"></script>
</block>



